CFlow

class CFlow<T>

This is a wrapper for Flow that can be used for Swift. It extends Flow and provides a watch method with which you can use Flow synchronously.

Example:

CFlow(someFlow).watch { println(it) }

Functions

Link copied to clipboard
fun watch(block: (T) -> Unit): Closeable